<?php
//base de datos, contasena, tal y como esta
$conn = oci_connect('antonhy', 'bahamuth', 'localhost/XE');
if (!$conn) {
    $e = oci_error();
    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}

$estado=$_SESSION['estado2']=@$_REQUEST['cboestado']; 
$ciudad=$_SESSION['ciudad2']=@$_REQUEST['cbociudad'];
$colonia=$_SESSION['colonia2']=@$_REQUEST['cbocolo'];

//QUERY COMBO 1
$query=oci_parse($conn, "SELECT * FROM ESTADOS"); 
oci_execute($query);

	

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/style.css">
  
  <title>INICIAR SESION</title>

<script type="text/javascript" language="javascript" src="js/ajax.js"></script>	
<script type="text/javascript" language="javascript" src="js/ajax1.js"></script>	

<style>
*{
	margin:0;
	padding:0;
	}
body{
	margin:auto;
	background:#FF6600;
}


header{
width:100%;
height:112px;
overflow:hidden;

}
/*menu*/
header nav{
	width:100%;
	max-width:1000px;
	margin: 0.5px auto;
			background:#660000;

max-width:10000px;
	width:100%;
	
	
	
	}
	

header nav ul{
	overflow:hidden;
	list-style:none;
	
	
	
	
	}
header nav ul li{
	float:left;
	width:20%;
	}	
	
header nav ul li a{
	color:#000;
	padding:20px;
	display:block;
	text-decoration:none;
	}	
	
header nav ul li span{
	margin-right:10px;
	
	}
header nav ul li a:hover{
	background:#F00;
	}
	/*end Menu*/
	

	
		/*Sub-Menu*/
header nav >ul >li:hover >ul{
	display:block;
	height:auto;
	
	
	}

header nav >ul >li >ul{
display:block;
	background:#CC0000;
	position:absolute;
	left:0;
	right:0;
	overflow:hidden;
	height:0%;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition:all .3s ease;
	

	
	}
	
	
	/*menu imagen hover*/
	
header nav >ul li a{
	margin:-10px auto;
	display:block;
	line-height:20px;
	padding:25px;
	position:relative;
	text-align:center;
	font-size:100%;
	font-family: 'Black Ops One', cursive;
	text-decoration:none;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition:all .3s ease;
	color:#FFF;
	
}

header nav > ul >li >ul >li a:hover{
	background:#FF0000;
	
	
	}
	
header nav > ul > li a span{
	background:#174459;
	display:block;
	height:100%;
	width:100%;
	left:0;
	position:absolute;
	top:-55px;
	
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition:all .3s ease;
	
}

headrr nav	>ul >li > a span .icon{
	display:block;
	line-height:100px;
	
	}
	
header nav >ul >li > a:hover > span{
		top:0;
		
	}
	.home{
		
		width:15%;}
img{
	margin:10px auto;
	

	
	}
	/*colores*/
header nav >ul >li >a >span.primero{
	background:#660000;
}

header nav >ul >li >a >span.segundo{
	background:#660000;
}

header nav >ul >li >a >span.tercero{
	background:#660000;
}

header nav >ul >li >a >span.cuarto{
	background:#660000;
}


header nav >ul >li >a >span.quinto{
	background:#660000;
}
header nav >ul >li >a >span.sexto{
	background:#660000;
}

.brand{
	font-family: 'Black Ops One', cursive;
	font-size:20px;
	line-height:60px;
	float:left;
	color:#000;
	

	
}

	/*end menu imagen hover*/
	
/*Contenedor*/
	section{
		margin:10px auto;
		padding:10px;
		
		}
	section >p{
		text-align:center;
		font-family:"Times New Roman", Times, serif;
		font-size:120%;
		color:#FFF;
	}


/*Contenedor*/


section#contenedor{
	margin:60px auto;
	max-width:1000px;
	text-align:center;
	
}

section#principal, aside, aside1{
	border-radius:0.5em;
	display:inline-block;
	margin:0.25em auto;
	max-width:1000px;
	min-height:200px;
	padding:0.25em;
	text-align:center;
	vertical-align:top;
	width:65%;
	
}


aside{


	border-radius:0.5em;
	display:inline-block;
	margin:0.25em auto;
	max-width:2000px;
	min-height:100px;
	padding:0.25em;
	text-align:center;
	vertical-align:top;
	width:62%;

}

aside1{
	width:30%;
	max-width:100%;
	min-height:100px;
	padding:0.25em;
	text-align:center;
	vertical-align:top;

	}

aside2{
	width:30%;
	max-width:960px;
	min-height:100px;
	padding:0.25em;
	text-align:center;
	vertical-align:top;

	
	}
	
	aside3{
		display:none;
		width:30%;
	max-width:960px;
	min-height:100px;
	padding:0.25em;
	text-align:center;
	vertical-align:top;

	
		
		}
/*end contenedor*/

/*footer*/
footer{

	border-radius:0.5em;
	margin:auto;
	max-width: 960px;
	text-align:center;
}
/*end footer*/


/*slider*/



.slider{
	display:block;
	position:relative;
	margin:-80px auto;
	width:108%;
	max-width:2000px;
	height:1%;
	overflow:hidden;	
	box-shadow:0 0 20px rgba(0,0,0,0.4);
	margin-left:-40px;
	
	

}


.contenedor-img img {
	display: block;
	float: left;
	

}


.cuatro-imagenes {
	width: 100%;
	max-width:2000px;


	
}

.cuatro-imagenes img {
	width: 20%;
	margin:auto;
	box-shadow:0 0 20px rgba(0,0,0,0.4);
	border:4px solid #FF6600;
	margin-left:-10px;

}

.contenedor-img {

position: relative;
	left: 0;
	-webkit-transition: left .10s ease-in;
	-ms-transition: left .10s ease-in;
	-moz-transition: left .10s ease-in;
	-o-transition: left .10s ease-in;
	transition: left .10s ease-in;
}

/*end slider*/



.brand1{
	font-family:sans-serif;
	font-size:12px;
	float:right;
	color:#FFF;
	width:120px;
	text-align:center;

			
	
}

/*modalmask*/

.modalmask {
	position: fixed;
	font-family: Arial, sans-serif;
	top: 0;
	right: 0;
	bottom: 0px;
	left: 0;
	background:#FF6600;
	background-repeat:no-repeat;
	background-size:1000%;	

	z-index: 99999;
	opacity:0;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	pointer-events: none;
}
.modalmask:target {
	opacity:1;
	pointer-events: auto;
}
.modalbox{
	width: 500px;
	position: relative;
	padding: 5px 20px 13px 20px;
	background: #FF6600;
	border-radius:3px;
	-webkit-transition: all 500ms ease-in;
	-moz-transition: all 500ms ease-in;
	transition: all 500ms ease-in;
	border:0.5px solid #FF6600;
	box-shadow:0 0 20px rgba(0,0,0,0.4);
	
	
}

.movedown {
	margin: 0 auto;
}
.rotate {
	margin: 10% auto;
	-webkit-transform: scale(-5,-5); 
	transform: scale(-5,-5);
}
.resize {
	margin: 10% auto;
	width:0;
	height:0;

}
.modalmask:target .movedown{		
margin:5px;
		width:1150px;
	height:auto;

}
.modalmask:target .rotate{		
	transform: rotate(360deg) scale(1,1);
    -webkit-transform: rotate(360deg) scale(1,1);
	width:400px;
	height:auto;
	margin:50px auto;
}

.modalmask:target .resize{
	width:400px;
	height:auto;

}



.close {
	background: #606061;
	color: #FFFFFF;
	line-height: 25px;
	position: absolute;
	right: 1px;
	text-align: center;
	top: 1px;
	width: 24px;
	text-decoration: none;
	font-weight: bold;
	border-radius:3px;
	font-size:16px;
}

.close:hover { 
	background: #FAAC58; 
	color:#222;
}

.ul{
	width:500px;
	margin:20% auto;
	list-style:none;
	
}
.ul li{

	float:left;
	margin-right:35px;

}
.ul li a{
	font-family: Arial, sans-serif;
	font-size:16px;
	text-decoration:none;
	
	padding:20px;
	font-weight:bold;
	border-radius:3px;
	-webkit-transition: all 200ms ease-in;
	-moz-transition: all 200ms ease-in;
	transition: all 200ms ease-in;

}
.ul li a:hover{
	
	color:#222;

}

a{
	text-decoration:
	none;
	font-family: 'Black Ops One', cursive;
	font-size:14px;
	color:#FFF;



}
a:hover{
	color:#000;

}
.nsc{
	position:absolute;
	bottom:40%;
	right:0;
} 



p{
	color:#000;
    font-size:100%;
}
	
/*end modalmask*/

.lupa:hover{
background:#FFF;


}

</style>
</head>

<body bgcolor="#FF4500">
<img src="img/123.png" class="brand" width="100px" height="60"/>
<div id="brand">Servicio Web</div>


<div class="brand1">
<?php

ob_start();

session_start();
// si no han iniciado sesión tratando de acceder a esta página el usuario será redirigido a la index.php
if( (!isset($_SESSION["USUARIO"])))
 {
	 echo "NO SE ENCONTRO EL USUARIO";
     exit;
 }
  
  else
  {
  
?>

<h1 style="color:#FFF;font-size:12px; font-family:'Black Ops One',cursive;">BIENVENIDO:<input type="text" readonly style="width:80px" value="<?php echo $_SESSION["USUARIO"] ?>" /> </h1><br />
 
<a href="logout.php" style="color:#FFF; font-size:12px; font-family: 'Black Ops One', cursive;list-style:none; border:1px solid #000; 	border-radius:5px; text-decoration:none; background:#660000;">Cerrar Sesion</a>     
</div>

<header>
<nav>
<ul>
<li><a href="admin.php"><span class="segundo"><img src="img/home.png" class="home"/></span>ADMINISTRADOR</a></li>
<li><a href="niveles.php"><span class="tercero"><img src="img/promociones.png" width="50%"/></span>NIVELES</a></li>
<li><a href="areas.php"><span class="cuarto"><img src="img/ubicación.png" width="50%"/></span>AREAS</a></li>
<li><a href="datos.php"><span class="quinto"><img src="img/galería.png" width="50%"/></span>DATOS GENERALES</a></li>

</ul>
</nav>
</header>

<section id="contenedor">


<div class="slider">
	<div id="ofertas2">

</div>


<aside>
<div class="contenedor-img cuatro-imagenes"  id="slideshow">
   
    </div>
<?php
//base de datos, contasena, tal y como esta
$conn = oci_connect('antonhy', 'bahamuth', 'localhost/XE');
if (!$conn) {
    $e = oci_error();
    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
?>



<script type="text/javascript">
function validacion(f)
{
	if(f.txtusuario.value == "")
	{
	alert("Inserte Usuario");
	f.txtusuario.focus();
	return true;
	}
if(f.txtpassword.value == "")
	{
	alert("Inserte apellido paterno");
	f.txtpassword.focus();
	return true;
	}
if(f.txtnombre.value == "")
	{
	alert("Inserte apellido materno");
	f.txtnombre.focus();
	return true;
	}
if(f.txtemail.value == "")
	{
	alert("Inserte ciudad");
	f.txtemail.focus();
	return true;
	}
if(f.txtdireccion.value == "")
	{
	alert("Inserte edad");
	f.txtdireccion.focus();
	return true;
	}
if(f.cboedad.value == "")
	{
	alert("Inserte direccion");
	f.cboedad.focus();
	return true;
	}
if(f.cboSexo.value == "")
	{
	alert("Inserte codigo postal");
	f.cboSexo.focus();
	return true;
	}
if(f.txtrfc.value == "")
	{
	alert("Inserte telefono");
	f.txtrfc.focus();
	return true;
	}
if(f.cbocivil.value == "")
	{
	alert("Inserte email");
	f.cbocivil.focus();
	return true;
	}

if(f.txtcuidad.value == "")
	{
	alert("Inserte email");
	f.txtcuidad.focus();
	return true;
	}
}
</script>

<h1>NUEVO REGISTRO </h1>
<form method="POST" style="margin-left:-160px;" name="form1" action="registro2.php" onsubmit="return validacion(this)">
<table style="margin:auto; border:1px solid #000; border:0.5px solid #FF6600;
	box-shadow:0 0 20px rgba(0,0,0,0.4);">
<tr>
<td>

<td>
<br /><br />
<!-- datos del formulario, capos de tu base de datos -->
Usuario: <input  type="text" name="txtusuario" style="background:url(img/user1.png); background-position:right; background-repeat:no-repeat; background-size:30px; background-color:#FFF;width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;" placeholder="Usuario:"/>
</td>

<td>
<br /><br />Password: <input  type="password" name="txtpassword" style="background:url(img/pass.png); background-position:right; background-repeat:no-repeat; background-size:20px; background-color:#FFF;width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;" placeholder="Password:"/>
</td>

<td>
<br /><br />Nombre: <input style="background:url(img/usuario.png); background-position:right; background-repeat:no-repeat; background-size:20px; background-color:#FFF;width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;" type="text" name="txtnombre" placeholder="Nombre:"/>
</td>

</td>
</tr>

<tr>
<td>
<td>
<br /><br />Email: <input type="text" style="background:url(img/email.png); background-position:right; background-repeat:no-repeat; background-size:32px; background-color:#FFF;width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;" name="txtemail" placeholder="Email:"/>
</td>

<td>
<br /><br />Direccion: <input style="background:url(img/dire.png); background-position:right; background-repeat:no-repeat; background-size:32px; background-color:#FFF;width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;" type="text" name="txtdireccion" placeholder="Direccion:"/>
</td>

<td>
<br /><br />Edad: <select type="text" class="input" style="width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;" name="cboedad"/>

<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">39</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>

		</select>
</td>

</td>
</tr>

<tr>
<td>

<td>
<br /><br />Sexo: <select name="cbosexo" style="width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;"/>
<option value="Masculino">Masculino</option>
<option value="Femenino">Femenino</option>
		</select>

</td>

<td>
<br /><br />RFC: <input type="text"  name="txtrfc" placeholder="Rfc:" style="width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;"/>
</td>

<td>
<br /><br />Estado civil: <select  name="cbocivil" style="width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;" />
<option value="Soltero">Soltero</option>
<option value="Casado">Casado</option>
</select>
</td>



</tr>

<tr>
<td>
<td>
<br /><br />ESTADOS:<select name="cboestado" style="width:300px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;"  id="cboestado" onchange="from(document.form1.cboestado.value,'midiv','ciudad2.php')">

<option  value="">SELECCIONA....</option>

<?php while($row=oci_fetch_array($query))
{


?>
<option  value="<?php echo  $row['IDESTADO']?>"> <?php echo htmlentities($row['ESTADO']);?></option>

<?php 
}
 ?>
</select>
</td>

<td>
<br /><br />
<div id="midiv">
			
		</div>
	</td>

<td>
<br /><br />
<div id="midiv2">
			
		</div>
</td>

</td>
</tr>


<tr>
<td>
<td>
<td>
<br /><center><input type="submit" value="Guardar" style="width:100px;height:35px;padding:0.1em 10px;color:#6d6d6d;border-radius:0.5em;
text-align:center;" name="btnGuardar" /></center>
</td>
</td>
</td>
</tr>
</table>
</form>


</div>
</div>


  <section id="principal">
</aside>

<aside1>

</section>   

   </section>


</body>
</html>

<?php
  } //cerrar else
?> 
